pub mod entry;
pub mod git_provider;
pub mod local_provider;
pub mod timeline;

#[tauri::command]
pub fn local_history_restore(path: String, content: String) -> Result<(), String> {
    match std::fs::write(&path, content) {
        Ok(_) => Ok(()),
        Err(e) => Err(e.to_string()),
    }
}